package com.wjh.garbagetype.enums;

/**
 * @Description 请求响应状态码
 * @Date 2020/4/18 11:28
 * @Created by jiahui.wu
 */
public enum HttpCodeEnum {

    SUCCESS(200, "成功"),

    ERROR(500, "内部服务器错误-请联系管理员"),

    RESULT_NULL(300, "分析结果为空"),

    PARAM_ERROR(400, "缺少必要的参数"),

    FILE_TOO_LARGE(403, "图片不可超过800KB"),


    ;

    HttpCodeEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }

    /**
     *  code
     */
    private Integer code;

    /**
     *  描述
     */
    private String message;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }


}
